/*
*  Copyright 2019-2023 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.front.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
* @description /
* @author XX
* @date 2024-05-23
**/
@Data
@TableName("agv_mission_history")
public class AgvMissionHistoryFront implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "agv任务号")
    private String taskId;

    @ApiModelProperty(value = "任务类型")
    private String missionType;

    @ApiModelProperty(value = "任务状态")
    private String taskStatus;

    @ApiModelProperty(value = "优先级  ，1-100,数值越高，优先级越高")
    private Integer priority;

    @ApiModelProperty(value = "途径点")
    private String targetCollection;

    @ApiModelProperty(value = "动作参数总数")
    private Integer totalActionNum;

    @ApiModelProperty(value = "已完成动作数量")
    private Integer completeActionNum;

    @ApiModelProperty(value = "执行agv")
    private String agvId;

    @ApiModelProperty(value = "搬运栈板号")
    private String palletCode;

    @ApiModelProperty(value = "WCS任务号")
    private String wcsMissionId;

    @ApiModelProperty(value = "wcs任务类型")
    private String wcsMissionType;

    @ApiModelProperty(value = "所属wcs任务状态")
    private String wcsMissionStatus;

    @ApiModelProperty(value = "创建时间")
    private Timestamp createTime;

    @ApiModelProperty(value = "开始时间")
    private Timestamp startTime;

    @ApiModelProperty(value = "结束时间")
    private Timestamp finishTime;

    public void copy(AgvMissionHistoryFront source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
